package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-06
 * Time: 16:45
 */
class washMachine {
    public String brand;
    public String type;
    public double weight;
    public double length;
    public double width;
    public double height;
    public String color;

    public void washClothes() {
        System.out.println("洗衣功能");
    }
    public void dryClothes() {
        System.out.println("脱水功能");
    }
    public void setTime() {
        System.out.println("定时功能");
    }
}
public class Test2 {
    public static void main(String[] args) {
        washMachine washMachine = new washMachine();
        washMachine.brand = "haier";
        washMachine.color = "withe";
        washMachine.washClothes();
        washMachine.dryClothes();
        washMachine.setTime();
        System.out.println(washMachine.brand);
        System.out.println(washMachine.color);
    }
}
